package com.jiyun.jiyunmall.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jiyun.jiyunmall.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单项信息
 *
 * @author boge 71164376@qq.com
 * @since 1.0.0 2022-07-12
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("oms_order_item")
public class OrderItemEntity {
	private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Long id;
    /**
     * order_id
     */
	private Long orderId;
    /**
     * order_sn
     */
	private String orderSn;
    /**
     * spu_id
     */
	private Long spuId;
    /**
     * spu_name
     */
	private String spuName;
    /**
     * spu_pic
     */
	private String spuPic;
    /**
     * 品牌
     */
	private String spuBrand;
    /**
     * 商品分类id
     */
	private Long categoryId;
    /**
     * 商品sku编号
     */
	private Long skuId;
    /**
     * 商品sku名字
     */
	private String skuName;
    /**
     * 商品sku图片
     */
	private String skuPic;
    /**
     * 商品sku价格
     */
	private BigDecimal skuPrice;
    /**
     * 商品购买的数量
     */
	private Integer skuQuantity;
    /**
     * 商品销售属性组合（JSON）
     */
	private String skuAttrsVals;
    /**
     * 商品促销分解金额
     */
	private BigDecimal promotionAmount;
    /**
     * 优惠券优惠分解金额
     */
	private BigDecimal couponAmount;
    /**
     * 积分优惠分解金额
     */
	private BigDecimal integrationAmount;
    /**
     * 该商品经过优惠后的分解金额
     */
	private BigDecimal realAmount;
    /**
     * 赠送积分
     */
	private Integer giftIntegration;
    /**
     * 赠送成长值
     */
	private Integer giftGrowth;
}